package com.miyu.system.pojo.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;

/**
 * 角色表;
 * @author : miyu
 * @date : 2022-9-30
 */
@ApiModel(value = "角色表",description = "")
@Data
@Entity
@Table(name="sys_role")
public class SysRole implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @ApiModelProperty(name = "主键",notes = "")
    @Column(name = "role_id", nullable = false, length =32 )
    private String roleId ;
    /** 编码权限字符 */
    @ApiModelProperty(name = "编码权限字符",notes = "")
    @Column(name = "role_range", nullable = true, length =90 )
    private String roleRange ;
    /** 角色名称 */
    @ApiModelProperty(name = "角色名称",notes = "")
    @Column(name = "role_name", nullable = true, length =90 )
    private String roleName ;
    /** 是否停用 */
    @ApiModelProperty(name = "是否停用",notes = "")
    @Column(name = "is_stop", nullable = true, length =1 )
    private String isStop = "0" ;
    /** 备注 */
    @ApiModelProperty(name = "备注",notes = "")
    @Column(name = "memo", nullable = true, length =90 )
    private String memo ;
    /** 排序 */
    @ApiModelProperty(name = "排序",notes = "")
    @Column(name = "order_num", nullable = true, length =10 )
    private Integer orderNum ;
}